package com.xmy.singleton;
// 饿汉式单例
public class Hungry {
    private Hungry(){

    };
    private static Hungry hungry = new Hungry();
    public static Hungry getInstance(){
        return hungry;
    }

}
